UCF STIG Viewer Logo
Changes are coming to https://stigviewer.com. Take our survey to help us understand your usage and how we can better serve you in the future.
Take Survey

The macOS firewall must have logging enabled.


Overview

Finding ID Version Rule ID IA Controls Severity
V-81671 AOSX-13-000950 SV-96385r1_rule Medium
Description
Firewall logging must be enabled. This ensures that malicious network activity will be logged to the system.
STIG Date
Apple OS X 10.13 Security Technical Implementation Guide 2018-10-01

Details

Check Text ( C-81447r1_chk )
If HBSS is used, this is not applicable.

To check if the macOS firewall has logging enabled, run the following command:

/usr/libexec/ApplicationFirewall/socketfilterfw --getloggingmode | /usr/bin/grep on

If the result does not show "on", this is a finding.
Fix Text (F-88519r1_fix)
To enable the firewall logging, run the following command:

/usr/bin/sudo /usr/libexec/ApplicationFirewall/socketfilterfw --setloggingmode on